package com.qingcloud.api.dcengine.enums;

/**
 * 设备stech type字段枚举
 */
public enum ApiStationTypeEnum {

    GONGYE(11, "工业点"),
    NONGYE(12, "农业点"),
    LVHUA(13, "绿化点"),
    JUMIN(14, "居民区"),
    GUODUI(15, "国控对照点"),
    WURAN(16, "污染企业监控点"),
    CHENGJIAO(17, "城郊点"),
    CHENGQU(18, "城区点"),
    JIAOTONG(19, "交通点"),
    SHIDUI(20, "市控对照点"),
    ZIZHAN(21, "子站周边"),
    SHENKONG(98, "省控点"),
    YC(101, "扬尘站"),
    OTHER(100, "其他"),

    INDUSTRY(11, "工业点"),

    TOWN(17, "乡镇点"),

    GUOKONG(99, "国控站"),

    SHENGKONG(98, "省控站"),

    SHIKONG(97, "市控站"),

    HENGXIANG_RADAR(1, "横向雷达"),

    O3_RADAR(2, "臭氧雷达"),

    OCEC(1, "OCEC组分设备"),

    AEROSOL(2, "气溶胶组分设备"),

    METAL(3, "重金属组分设备");

    public int code;

    public String name;

    ApiStationTypeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getNameByCode(int code) {
        ApiStationTypeEnum[] uss = values();
        for (ApiStationTypeEnum us : uss) {
            if (us.code == code) {
                return us.name;
            }
        }
        return null;
    }
}
